Skip to content

Include FFI in static glibc builds - #2875

Open
aszenz wants to merge 2 commits into
php:mainfrom
aszenz:feat/glibc-static-ffi
Open

aszenz wants to merge 2 commits into
php:mainfrom
aszenz:feat/glibc-static-ffi

Conversation

@aszenz

@aszenz aszenz commented Nov 23, 2026

Copy link
Copy Markdown

Include PHP FFI in the default glibc static binaries for CI and dev containers. static-php-cli #1283 removed the FFI flag that re-enabled Zend signals on ZTS builds.

Closes #2713.

Comment thread .github/workflows/static.yaml Outdated
Comment on lines +403 to +404
"${BINARY}" php-cli -i | grep 'Zend Signal Handling => disabled'
"${BINARY}" php-cli -d ffi.enable=1 -r 'exit(FFI::cdef("int abs(int);", "libc.so.6")->abs(-42) === 42 ? 0 : 1);'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure this is a great idea because zend signal handlers will likely be removed entirely

@aszenz
aszenz requested a review from henderkes November 26, 2026 11:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ffi to the glibc static binaries

2 participants